package cn.pw.test.com.news.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import cn.pw.test.com.news.R;

public class ImageAdapter extends BaseQuickAdapter<Integer, BaseViewHolder> {

    public ImageAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, Integer item) {
        ImageView imgView = helper.itemView.findViewById(R.id.image_item_img);
        imgView.setImageResource(item);
    }
}
